github.com/go-pg/pg/v10/internal/pool.StickyConnPool.state (field)

8 uses

	github.com/go-pg/pg/v10/internal/pool (current package)
		pool_sticky.go#L40: 	state uint32 // atomic
		pool_sticky.go#L71: 		switch atomic.LoadUint32(&p.state) {
		pool_sticky.go#L77: 			if atomic.CompareAndSwapUint32(&p.state, stateDefault, stateInited) {
		pool_sticky.go#L132: 		state := atomic.LoadUint32(&p.state)
		pool_sticky.go#L136: 		if atomic.CompareAndSwapUint32(&p.state, state, stateClosed) {
		pool_sticky.go#L165: 	if !atomic.CompareAndSwapUint32(&p.state, stateInited, stateDefault) {
		pool_sticky.go#L166: 		state := atomic.LoadUint32(&p.state)
		pool_sticky.go#L184: 	switch atomic.LoadUint32(&p.state) {